// GraphicModelSpaceGenerator.cpp: implementation of the GraphicModelSpaceGenerator class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "GraphicModelSpaceGenerator.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

IMPLEMENT_DYNAMIC_EX(GraphicModelSpaceGenerator, UeObject);

GraphicModelSpaceGenerator::GraphicModelSpaceGenerator()
{

}

GraphicModelSpaceGenerator::~GraphicModelSpaceGenerator()
{

}

GraphicModelSpaceGenerator* GraphicModelSpaceGenerator::Instance()
{
	GMSGInfo* pInfo = NULL;
	GraphicModelSpace::Register::Iterator* pIt = 
		GraphicModelSpace::GraphicModelSpaceGeneratorRegister().NewIterator();
	ASSERT_MEMORY_VALID(pIt, NULL);

	pIt->Begin();
	pInfo = pIt->Get();

	delete pIt;
	ASSERT(pInfo);
	return pInfo->CreateObject();
}